﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace syc.Sale
{
    public partial class 采购原料中标信息 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int bid = 0;
            if (!this.IsPostBack)
            {
                if (Request.QueryString["ID"] != null)
                {
                    int.TryParse(Request.QueryString["ID"], out bid);
                }
                if (bid > 0)
                {
                    this.SqlDataSource1.SelectParameters["ID"].DefaultValue = bid.ToString();
                }
            }
            
        }

        protected void SqlDataSource1_Selected(object sender, SqlDataSourceStatusEventArgs e)
        {
            this.MingCheng.Text = (string)e.Command.Parameters[1].Value;
            this.BianHao.Text = (string)e.Command.Parameters[2].Value;
            this.NianDu.Text = ((int)e.Command.Parameters[3].Value).ToString()+"年";
            this.JiDu.Text = ((int)e.Command.Parameters[4].Value).ToString()+"季度";
            this.Date1.Text = ((DateTime)e.Command.Parameters[5].Value).ToLongDateString();
            this.BeiZhu.Text = (string)e.Command.Parameters[6].Value;
        }
    }
}
